export const SERVER_BASE = process.env.NEXT_PUBLIC_SERVER_BASE;
export const API_PREFIX = process.env.NEXT_PUBLIC_API_PREFIX;
export const BASE_PATH = process.env.NEXT_PUBLIC_CDN_URL;
export const AVATAR_URL = process.env.NEXT_PUBLIC_AVATAR_URL;
export * from "./code.error"
export * from "./api"
export * from "./city"


export const PROJ_TITLE = `极致宠爱 为你而来`;

export const REDIRECT_URL = `https://img.qiyuan.changan.com.cn/download/index.html?channel=10015&jumpDataValue=${decodeURIComponent(SERVER_BASE+process.env.NEXT_PUBLIC_BASE_PATH)}&jumpDataType=1`;
/** 启源小程序用户信息交互方式 */
export const REDIRECT_WX_PARAMS = '$token=token$openId=openId$phoneNumber=phoneNumber$nickName=nickName$channelSource=channelSource$privacyAuth=privacyAuth$registerTime=registerTime'
/** 小程序分享H5页面地址 */
export const REDIRECT_WX_URL = `${process.env.NEXT_PUBLIC_SERVER_BASE}${process.env.NEXT_PUBLIC_BASE_PATH}?position=share${REDIRECT_WX_PARAMS}`
export const REDIRECT_COVER = `https://car-cdn.varwey.com/qiyuan/2023/1219march/share0101/share-h5.jpg`;
export const REDIRECT_WX_COVER = `https://car-cdn.varwey.com/qiyuan/2023/1219march/share0101/share-wx.jpg`;
export const REDIRECT_TITLE = `极致宠爱 为你而来`;
export const REDIRECT_DESC = `”极“致宠爱 为你而来`;
export const MINI_P_ID = `gh_681f70da6649`;

export const PHONE_REG = /^[1][3,4,5,7,8][0-9]{9}$/;
/** 微信小程序分享页面地址 */
export const MINI_P_PATH = `/pages/common/views/web-view/WebView?src=${encodeURIComponent(REDIRECT_WX_URL)}`;

// 图片数量
export const WISH_PIC_LIMIT = 9;
// 图片大小
export const WISH_PIC_VOLUME = 5 * 1024 * 1024;


